home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1998
/
MacHack 1998.toast
/
The Hacks!
/
Interim Executive Decision
/
patch
/
(Appearance Mangler)
/
source code
/
A4Code.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1998-06-21
|
403 b
|
31 lines
|
[
TEXT/CWIE
]
#include "A4Code.h"
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(__POWERPC__) && !defined(__CFM68K__)
void RememberA4(void);
asm long SetUpA4(void)
{
move.l a4,d0
lea __storage,a4
move.l (a4),a4
rts
__storage: dc.l 0 /* this storage is only referenced thru data cache */
entry RememberA4
lea __storage,a0
move.l a4,(a0)
rts
}
#endif
#ifdef __cplusplus
}
#endif